import Detail from '@/views/detail.vue'

import LayOut from '@/views/layout.vue'
import Index from '@/views/second/Index.vue'
import LookHouse from '@/views/second/my.vue'
import Message from '@/views/second/message.vue'
import Search from '@/views/second/search.vue'

const routes = [
  {
    name: 'detail',
    path: 'detail',
    component: Detail,
  },
  {
    path: '/',
    component: LayOut,
    redirect: '/index',
    children: [
      {
        path: 'index',
        component: Index,
      },
      {
        path: 'lookhouse',
        component: LookHouse,
      },
      {
        path: 'message',
        component: Message,
      },
      {
        path: 'search',
        component: Search,
      },
    ],
  },
]
export default routes
